<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" type="text/css" href="sass/1.css">
</head>
<body>
    <div id="abc" class="abc">
        <h2>个人信息</h2>
        <p><span>姓名：</span><input class="input" type="text" v-model="name"></p>
        <p><span>年龄：</span><input class="input" type="number" v-model="age"></p>
        <p><span>身高：</span><input class="input" type="number" v-model="height"></p>
        <input v-if="height>=180" class="out" type="text" placeholder="兄弟，再有八块腹肌会更好" >
        <input v-else-if="height>=170" class="out" type="text" placeholder="该用功学习了，不然没对象" >
        <input v-else-if="height>=160"class="out" type="text" placeholder="兄弟啊，咱身高一般，但智商高" >
        <input v-else-if="height>=100" class="out" type="text" placeholder="别理他们，咱浓缩都是精华">
        <input v-else-if="height!='none'" class="out"type="text">
    </div>
</body>
<script src="https://unpkg.com/vue@next"></script>
<script>
    const Abc={
        data(){
            return{
                age:'',
                height:''
            }
        }
    }
    Vue.createApp(Abc).mount('#abc')
</script>
</html>